Expand description
Apple Dispatch (Grand Central Dispatch)
This crate allows interaction with the Apple Dispatch library in a safe (dispatch2
module) and unsafe (ffi
module) way.
Example:
use dispatch2::{Queue, QueueAttribute};
fn main() {
let queue = Queue::new("example_queue", QueueAttribute::Serial);
queue.exec_async(|| println!("Hello"));
queue.exec_sync(|| println!("World"));
}
Re-exports
Modules
Bindings to the Apple Grand Central Dispatch (GCD).
Dispatch group definition.
Dispatch object definition.
Dispatch queue definition.
Dispatch semaphore definition.
Enums
Quality of service that specify the priorities for executing tasks.
Wait error.